package com.zjy.dao;

import com.zjy.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserMapper extends Mapper<User> {
    int checkExistUserName(String userName);

    int checkPassword(User user);

    User getUserByNameAndPass(User user);

    int updatePassword(User user);

    User selectUserById(String userId);

    String selectUserNameById(String userId);

    List<User> selectUserList(@Param("begin") String begin, @Param("now") String now);

}